package cs236369.hw5;

import cs236369.hw5.TryThread.WhatToDo;

public class WebAppInit {

	/**
	 * @param args
	 * 
	 * TODO delete this method
	 */
	public static void main(String[] args) {
		DBConnection dbConnection = new DBConnection();
		
	/*	TryThread addUser = new TryThread(dbConnection, WhatToDo.ADD_CHUCK);
	    addUser.start();

		TryThread addUser2 = new TryThread(dbConnection, WhatToDo.ADD_CHUCK2);
		addUser2.start();

		TryThread delUser = new TryThread(dbConnection, WhatToDo.DEL_CHUCK);
		delUser.start();
		
		TryThread delUser2 = new TryThread(dbConnection, WhatToDo.DEL_CHUCK2);
		delUser2.start();
		
		TryThread postThread = new TryThread(dbConnection, WhatToDo.ADD_POST);
		postThread.start();
		
		TryThread eventThread = new TryThread(dbConnection, WhatToDo.ADD_EVENT);
		eventThread.start();
			
		TryThread tryThread = new TryThread(dbConnection, WhatToDo.REGISTER_EVENT);
		tryThread.start();
		
		TryThread tryThread = new TryThread(dbConnection, WhatToDo.UNACCEPT_CONS);
		tryThread.start();
		
		TryThread searchThread = new TryThread(dbConnection, WhatToDo.SEARCH);
		searchThread.start();
		
		*/
		InitListener init = new InitListener();
		init.contextInitialized(null);
		
		//TryThread postThread = new TryThread(dbConnection, WhatToDo.ADD_POST);
		//postThread.start();

		TryThread searchThread = new TryThread(dbConnection, WhatToDo.SEARCH);
		searchThread.start();
		
	}
	

}
